(function(){
    var ding=document.getElementById('ding');
    var gu;
    ding.onclick=function(){
        clearInterval(gu);
             gu=setInterval(function(){
            document.documentElement.scrollTop-=50;   
            if( document.documentElement.scrollTop<=0){
                clearInterval(gu);
            }
        },10)
    }
    window.onscroll=function(){
    
        if(document.documentElement.scrollTop<=100){
            ding.style.opacity=0;
        }else{
            ding.style.opacity=1;
        }
    }
    })();